package com.example.string;


import org.springframework.util.ObjectUtils;
import org.springframework.util.StringUtils;

import java.util.ArrayList;
import java.util.LinkedHashMap;

public class StringTools {
    public static void main(String[] args) {
        Object oo = new Object();
        System.out.println(StringUtils.isEmpty(""));
        System.out.println(StringUtils.isEmpty(null));


        System.out.println(ObjectUtils.isEmpty(null));
        System.out.println(ObjectUtils.isEmpty(""));
        System.out.println(ObjectUtils.isEmpty(new ArrayList()));
        System.out.println(ObjectUtils.isEmpty(new ArrayList(){{add(1);}}));
    }
}
